package cz.worsik.android.test.rideshare.model;


import android.content.res.Resources;

import cz.worsik.android.test.rideshare.R;

/**
 * Created by 231260 on 29.5.14.
 */
public class RouteSpinnerItem {

    int drawableResID;
    String name;
    String type;

    public RouteSpinnerItem(Route route) {
        this.name = route.getName();
        this.type = route.getType().getValue();

        switch (route.getType())
        {
            case NEW:
                this.drawableResID = R.drawable.ic_action_new;
            default:
                this.drawableResID = R.drawable.ic_drawer_route_f;
        }
    }

    public int getDrawableResID() {
        return drawableResID;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getType() {
        return type;
    }
}